﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
        <asp:Panel ID="HeaderPanel" runat="server">
            <asp:Table runat="server" HorizontalAlign="Center">
                <asp:TableHeaderRow runat="server" BackColor="ButtonShadow"><asp:TableHeaderCell runat="server" ColumnSpan="4">PHONE BOOK</asp:TableHeaderCell></asp:TableHeaderRow>
                <asp:TableRow runat="server" HorizontalAlign="Right">
                <asp:TableCell>Имя:<asp:TextBox ID="Name" runat="server"></asp:TextBox></asp:TableCell>
                <asp:TableCell>Фамилия:<asp:TextBox ID="SurName" runat="server"></asp:TextBox></asp:TableCell>
                <asp:TableCell>Страна:<asp:TextBox ID="County" runat="server"></asp:TextBox></asp:TableCell>
                <asp:TableCell>Город:<asp:TextBox ID="City" runat="server"></asp:TextBox></asp:TableCell>
                </asp:TableRow>
                <asp:TableRow  runat="server" HorizontalAlign="Right">
                <asp:TableCell>Улица:<asp:TextBox ID="Street" runat="server"></asp:TextBox></asp:TableCell>
                <asp:TableCell>Дом:<asp:TextBox ID="House" runat="server"></asp:TextBox></asp:TableCell>
                <asp:TableCell>Телефон 1:<asp:TextBox ID="Tel1" runat="server"></asp:TextBox></asp:TableCell>
                <asp:TableCell>Телефон 2:<asp:TextBox ID="Tel2" runat="server"></asp:TextBox></asp:TableCell>
                </asp:TableRow>
                <asp:TableFooterRow runat="server" BackColor="ButtonShadow"><asp:TableHeaderCell ID="TableHeaderCell1" runat="server" ColumnSpan="4">phone book</asp:TableHeaderCell></asp:TableFooterRow>
            </asp:Table>
        </asp:Panel>
        <br />
        <asp:Panel ID="SearchPanel" runat="server" HorizontalAlign="Center">
            <b>ИМЯ </b><asp:TextBox runat="server" ID="SName"></asp:TextBox>
            <b>ФАМИЛИЯ </b><asp:TextBox runat="server" ID="SSurName"></asp:TextBox>
            <b>ТЕЛЕФОН </b><asp:TextBox runat="server" ID="Stel"></asp:TextBox>
            <br /><br /><asp:Button runat="server" ID="ShowAllRecords" Text="Показать все записи" OnClick="ShowAllRecords_Click"/>
         </asp:Panel>
        <br />
        <asp:Panel ID="GridPanel" runat="server" ScrollBars="Auto">
            <asp:GridView ID="phoneGridView" runat="server" CellPadding="4" ForeColor="#333333" GridLines="None" HorizontalAlign ="Center" OnSelectedIndexChanged="phoneGridView_SelectedIndexChanged">
                <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                <Columns>   
                    <asp:CommandField ShowSelectButton="true" />                 
                    <asp:HyperLinkField HeaderText="ID" Text="Подробнее" DataNavigateUrlFields="id" DataNavigateUrlFormatString="~/PersonDetails.aspx?id={0}" DataTextField="id" />
                </Columns>
                <EditRowStyle BackColor="#999999" />
                <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                <SortedAscendingCellStyle BackColor="#E9E7E2" />
                <SortedAscendingHeaderStyle BackColor="#506C8C" />
                <SortedDescendingCellStyle BackColor="#FFFDF8" />
                <SortedDescendingHeaderStyle BackColor="#6F8DAE" />
            </asp:GridView>
        </asp:Panel>
    </form>
</body>
</html>
